<?php

namespace Core;

/**
 * Description of Bootstrap
 *
 * @author Admin
 */
class Bootstrap
{
	
	public function run()
	{
		$reflector = new \ReflectionClass(get_class($this));
		
		$methods = $reflector->getMethods();
		
		foreach($methods as $method)
		{
			$method = $method->name;
			if(strlen($method) >= 5 && substr($method, 0, 5) === '_init')
				$this->$method();
		}
	}
	
}
